import request from '@/utils/request'

// 查询职位管理列表
export function listJob(query) {
  return request({
    url: '/nmzp/job/list',
    method: 'get',
    params: query
  })
}

// 查询职位管理详细
export function getJob(jobId) {
  return request({
    url: '/nmzp/job/' + jobId,
    method: 'get'
  })
}


// 新增职位管理
export function addJob(data) {
  return request({
    url: '/nmzp/job',
    method: 'post',
    data: data
  })
}

// 修改职位管理
export function updateJob(data) {
  return request({
    url: '/nmzp/job',
    method: 'put',
    data: data
  })
}

// 删除职位管理
export function delJob(jobId) {
  return request({
    url: '/nmzp/job/' + jobId,
    method: 'delete'
  })
}

/**
 * 岗位审核
 * @param jobId
 * @returns {*}
 */
export function examineJob(data) {
  return request({
    url: '/nmzp/job/examine',
    method: 'post',
    data: data
  })
}

/**
 * 岗位上/下线
 * @param data
 * @returns {*}
 */
export function pop(data) {
  return request({
    url: '/nmzp/job/pop',
    method: 'post',
    data: data
  })
}
/**
 * 岗位投递
 * @param jobId
 * @returns {*}
 */
export function examineDeliver(data) {
  return request({
    url: '/nmzp/job/deliver',
    method: 'post',
    data: data
  })
}

export function jobLists(data) {
  return request({
    url: '/nmzp/job/jobList',
    method: 'post',
    data: data
  })
}

export function jobListSerch(data) {
  return request({
    url: '/nmzp/job/jobListSerch',
    method: 'post',
    data: data
  })
}

/**
 * 该岗位简历列表
 * @param data
 * @returns {*}
 */
export function jobResumeList(data) {
  return request({
    url: '/nmzp/job/jobResumeList',
    method: 'post',
    data: data
  })
}
